import json
d=dict(name='大街',age=20,score=100)
with open('jn.json','w') as jsonfile:
	jsonfile.write(json.dumps(d))
print('写入完成')

with open('jn.json','r')as jsonfile:
	a= json.loads(jsonfile.read())
	print('读取json转换为dict->a:\n',a)
